package com.servicio.common.UI;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import javax.swing.BoxLayout;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import javax.swing.JTextField;
import java.awt.GridLayout;
import net.miginfocom.swing.MigLayout;
import java.awt.Color;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.border.MatteBorder;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JSplitPane;
import javax.swing.JSeparator;
import com.imagine.component.calendar.CalendarComboBox;
import com.imagine.component.calendar.CalendarDayTimeComponent;

public class NewPractice extends JInternalFrame {
	private JTextField textField;
	private JTextField textField_1;
	private JLabel lblIngresoDeEstudio;
	private JLabel lblHora;
	private JLabel lblPaciente;
	private JTextField textField_3;
	private JLabel lblNroPac;
	private JTextField textField_4;
	private JLabel lblNewLabel_3;
	private JTextField textField_5;
	private JLabel lblNewLabel_4;
	private JTextField textField_6;
	private JLabel lblNewLabel_5;
	private JTextField textField_7;
	private CalendarComboBox calendarComboBox;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					NewPractice frame = new NewPractice();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public NewPractice() {
		getContentPane().setFont(new Font("Arial", Font.PLAIN, 12));
		getContentPane().setForeground(new Color(0, 0, 0));
		setBorder(new MatteBorder(1, 1, 1, 1, (Color) Color.GRAY));
		setTitle("Ingreso");
		setMaximizable(true);
		setClosable(true);
		setBounds(100, 100, 512, 451);
		getContentPane().setLayout(new MigLayout("", "[grow][grow][][][][][][][grow][grow][][][][][][][grow][][grow][][][][][grow][][grow][][grow][][grow][grow]", "[][][grow][][][][grow][][grow]"));
		
		lblIngresoDeEstudio = new JLabel("Ingreso de Estudio...");
		lblIngresoDeEstudio.setForeground(new Color(51, 102, 153));
		lblIngresoDeEstudio.setFont(new Font("Arial", Font.BOLD, 16));
		lblIngresoDeEstudio.setBackground(new Color(153, 204, 204));
		getContentPane().add(lblIngresoDeEstudio, "cell 0 0 10 1");
		
		JLabel lblNewLabel = new JLabel("Estudio");
		lblNewLabel.setFont(new Font("Arial", Font.PLAIN, 12));
		lblNewLabel.setForeground(new Color(0, 0, 0));
		getContentPane().add(lblNewLabel, "cell 0 2,alignx trailing");
		
		textField = new JTextField();
		textField.setFont(new Font("Arial", Font.BOLD, 12));
		textField.setBackground(new Color(230, 230, 250));
		getContentPane().add(textField, "cell 1 2 3 1,growx");
		textField.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("Tipo");
		lblNewLabel_1.setFont(new Font("Arial", Font.PLAIN, 12));
		lblNewLabel_1.setForeground(new Color(0, 0, 0));
		getContentPane().add(lblNewLabel_1, "cell 4 2,alignx trailing");
		
		JLabel lblNewLabel_2 = new JLabel("Fecha");
		lblNewLabel_2.setFont(new Font("Arial", Font.PLAIN, 12));
		lblNewLabel_2.setForeground(new Color(0, 0, 0));
		getContentPane().add(lblNewLabel_2, "cell 11 2,alignx trailing");
		
		calendarComboBox = new CalendarComboBox();
		getContentPane().add(calendarComboBox, "cell 13 2");
		
		lblHora = new JLabel("Hora");
		lblHora.setFont(new Font("Arial", Font.PLAIN, 12));
		getContentPane().add(lblHora, "cell 17 2,alignx trailing");
		
		textField_1 = new JTextField();
		textField_1.setFont(new Font("Arial", Font.BOLD, 12));
		textField_1.setBackground(new Color(230, 230, 250));
		getContentPane().add(textField_1, "cell 22 2,growx");
		textField_1.setColumns(10);
		
		lblPaciente = new JLabel("Paciente");
		lblPaciente.setForeground(Color.BLACK);
		lblPaciente.setFont(new Font("Arial", Font.PLAIN, 12));
		getContentPane().add(lblPaciente, "cell 0 4,alignx trailing");
		
		textField_3 = new JTextField();
		textField_3.setFont(new Font("Arial", Font.BOLD, 12));
		textField_3.setColumns(10);
		textField_3.setBackground(new Color(255, 255, 255));
		getContentPane().add(textField_3, "cell 1 4 12 1,growx");
		
		lblNroPac = new JLabel("Nro. Pac.");
		lblNroPac.setForeground(Color.BLACK);
		lblNroPac.setFont(new Font("Arial", Font.PLAIN, 12));
		getContentPane().add(lblNroPac, "cell 15 4,alignx trailing");
		
		textField_4 = new JTextField();
		getContentPane().add(textField_4, "cell 16 4 5 1,growx");
		textField_4.setColumns(10);
		
		lblNewLabel_3 = new JLabel("New label");
		lblNewLabel_3.setFont(new Font("Arial", Font.PLAIN, 12));
		getContentPane().add(lblNewLabel_3, "cell 22 4,alignx trailing");
		
		textField_5 = new JTextField();
		getContentPane().add(textField_5, "cell 23 4 5 1,growx");
		textField_5.setColumns(10);
		
		lblNewLabel_4 = new JLabel("New label");
		lblNewLabel_4.setFont(new Font("Arial", Font.PLAIN, 12));
		getContentPane().add(lblNewLabel_4, "cell 28 4,alignx trailing");
		
		textField_6 = new JTextField();
		getContentPane().add(textField_6, "cell 29 4,growx");
		textField_6.setColumns(10);
		
		lblNewLabel_5 = new JLabel("Domicilio");
		lblNewLabel_5.setFont(new Font("Arial", Font.PLAIN, 12));
		getContentPane().add(lblNewLabel_5, "cell 0 5,alignx trailing");
		
		textField_7 = new JTextField();
		getContentPane().add(textField_7, "cell 1 5 15 1,growx");
		textField_7.setColumns(10);

	}

}
